package com.cskaoyan.service.admin;

import com.cskaoyan.bean.MarketOrder;
import com.cskaoyan.bean.bo.admin.order.MarketOrderSkipBo;
import com.cskaoyan.bean.bo.admin.order.OrderListBO;
import com.cskaoyan.bean.common.BasePageInfo;
import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.common.CommonData;
import com.cskaoyan.bean.vo.admin.order.MarketOrderDetailVo;
import org.apache.ibatis.annotations.Param;

import java.text.ParseException;

/**
 * 订单service层
 *
 * @Author: zhang
 * @Date: 2022/11/21 16:47
 * @Since: jdk1.8
 */
public interface MarketOrderService {
    /**
     * 查询所有的订单
     * @param orderListBO 订单信息
     * @param basePageInfo 分页信息
     * @return CommonData<MarketOrder>
     * @throws ParseException 异常
     */
    CommonData<MarketOrder> query(OrderListBO orderListBO, BasePageInfo basePageInfo) throws ParseException;

    /**
     * 查询订单详情信息
     * @param id 订单id
     * @return MarketOrderDetailVo
     */
    MarketOrderDetailVo detail(String id);

    /**
     * 发货
     * @param marketOrderSkipBo 要发货的订单信息
     */
    void ship(MarketOrderSkipBo marketOrderSkipBo);

    /**
     * 删除订单
     * @param orderId 订单id
     * @return ok
     */
    int delete(String orderId);
}


